﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="../common/taglibs.jsp"%>
<!-- 
    Copyright (C)  2011  chen wei hua.
    Permission is granted to copy, distribute and/or modify this document
    under the terms of the GNU Free Documentation License, Version 2.0
    or any later version published by the Free Software Foundation;
    with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
    A copy of the license is included in the section entitled "GNU Free Documentation License".
 -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>出货单详细</TITLE>
<%@ include file="../common/config.jsp"%>
<script type="text/javascript" language="javascript">

</script>
</HEAD>
<BODY>
    <div class="subnav" align="left">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td width="100%" align="left" height="31">&nbsp;<img src="images/title-pk.gif" border="0"  align="absmiddle"/>&nbsp;<span class="subnavtxt1">订单管理</span>
			&nbsp;<img src="images/leftico2.gif" border="0"  align="absmiddle"/>&nbsp;<span class="subnavtxt2">订单详细信息</span></td>
		  </tr>
		</table>
    </div>
	<div class="btn-bottom" align="right" style="margin-right:20px"> 
	  <s:if test="order.status==1">
	    <input onclick=javascript:window.location.href='openOrder.action?orderId=<s:property value="order.id"/>' type="button" value="新建出货单" class="input1" />
	  </s:if>
	    <input onclick=javascript:window.location.href='newMaterialsRequest.action?orderId=<s:property value="order.id"/>' type="button" value="新建采购需求单" class="inputlong" />
		<input onclick=javascript:window.location.href='editPurchaseOrder.action?orderId=<s:property value="order.id"/>' type="button" value="修改订单" class="input1" />
	</div>
   <div class="tab">
	<div id="tb_" class="tb_">
	  <ul>
		<li id="tb_1" class="hovertab">订单信息</li>
	    <s:if test="order.planMaterials>0">
		  <li id="tb_2" class="normaltab" onClick=javascript:window.location.href='orderMaterialsRequestList.action?condition.orderId=<s:property value="orderId" />'>采购信息</li>
		</s:if>
	  </ul>
    </div>
	<div class="dis" id="tbc_01">
     <div class="main_1">
       <table width="99%" border="0" cellpadding="10" cellspacing="1" bgcolor="#D3DEEF">
         <tr>
           <td align="left" class="Blue14" bgcolor="#FAFAFA" colspan="4">订单信息</td>
         </tr>
         <tr>
		    <td width="20%" bgcolor="#FAFAFA" align="right"><strong>签订日期</strong></td>
		    <td width="30%" bgcolor="#FAFAFA"><s:date name="order.orderDate" format="yyyy-MM-dd"/></td>
		    <td width="20%" bgcolor="#FAFAFA" align="right"><strong>客户名称</strong></td>
	        <td width="30%" bgcolor="#FAFAFA"><s:property value="order.customName"/></td>
		 </tr>
		<tr>
	      <td bgcolor="#FAFAFA" align="right"><strong>订单号</strong></td>
	      <td bgcolor="#FAFAFA"><s:property value="order.contractNo"/></td>
	      <td bgcolor="#FAFAFA" align="right"><strong>预出货日期</strong></td>
	      <td bgcolor="#FAFAFA"><s:date name="order.expectOutDate" format="yyyy-MM-dd"/></td>
		</tr>
		<tr>
	      <td bgcolor="#FAFAFA" align="right"><strong>合同金额</strong></td>
	      <td bgcolor="#FAFAFA"><s:property value="order.totleAmount"/></td>
	      <td bgcolor="#FAFAFA" align="right"></td>
	      <td bgcolor="#FAFAFA"></td>
		</tr>
      </table>
     </div>
     <div class="clear"></div>
	 <div class="main_1">
       <table width="99%" cellpadding="0" cellspacing="1" border="0" class="ksglxx2a">
        <tr class="ksglxx2bg">
          <th width="8%" >分类</th>
          <th width="8%" >品名</th>
          <th width="15%" >规格</th>
          <th width="6%" >代码</th>
          <th width="6%" >客户代码</th>
		  <th width="6%" align="left">数量</th>
		  <th width="6%" >单位</th>
		  <th width="6%" align="left">价格</th>
		  <th width="8%" align="left">其他费用</th>
		  <th width="8%" align="left">金额</th>
		  <th width="6%" align="left">计划数量</th>
		  <th width="6%" align="left">入库数量</th>
		  <th width="6%" align="left">发货数量</th>
		  <th align="left"></th>
		</tr>
		<s:iterator value="order.orderDetails" id="detail" status="st">
          <s:if test="#st.Odd">
            <tr class="odd">
              <td><s:property value="#detail.productCategory" /></td>
              <td><s:property value="#detail.productName" /></td>
              <td><s:property value="#detail.productType" /></td>
              <td><s:property value="#detail.productNo" /></td>
              <td><s:property value="#detail.customNo" /></td>
              <td><s:property value="#detail.number" /></td>
              <td><s:property value="#detail.unit" /></td>
              <td><s:property value="#detail.price" /></td>
              <td><s:property value="#detail.otherAmount" /></td>
              <td><s:property value="#detail.amount" /></td>
              <td><s:property value="#detail.planNumber" /></td>
              <td><s:property value="#detail.inStoreNumber" /></td>
              <td><s:property value="#detail.deliveryNumber" /></td>
              <td></td>
            </tr>
          </s:if>
          <s:else>
            <tr class="even">
              <td><s:property value="#detail.productCategory" /></td>
              <td><s:property value="#detail.productName" /></td>
              <td><s:property value="#detail.productType" /></td>
              <td><s:property value="#detail.productNo" /></td>
              <td><s:property value="#detail.customNo" /></td>
              <td><s:property value="#detail.number" /></td>
              <td><s:property value="#detail.unit" /></td>
              <td><s:property value="#detail.price" /></td>
              <td><s:property value="#detail.otherAmount" /></td>
              <td><s:property value="#detail.amount" /></td>
              <td><s:property value="#detail.planNumber" /></td>
              <td><s:property value="#detail.inStoreNumber" /></td>
              <td><s:property value="#detail.deliveryNumber" /></td>
              <td></td>
            </tr>
           </s:else>
		</s:iterator>
       </table>
     </div>
    </div>
   </div>
</BODY></HTML>
